package com.atguigu.gmall.list.client;

import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "service-list")
public interface ListFeignClient {


    @GetMapping("/api/list/inner/addHotScore/{skuId}")
     void addHotScore(@PathVariable Long skuId);

    @PostMapping("/api/list/inner/getSearchList")
    SearchResponseVo getSearchList(@RequestBody SearchParam searchParam);
}
